var o = require("../../14D6B083C63E4BDF72B0D88468E97135.js"), e = require("../../7512B3B0C63E4BDF1374DBB7D42A7135.js");

Component({
    properties: {},
    data: {
        show: !1
    },
    ready: function() {},
    methods: {
        getUserInfo: function(o) {
            console.log(o);
        }
    },
    pageLifetimes: {
        show: function() {
            var o = this;
            t.then(function(e) {
                console.log(e), 1 == e ? o.setData({
                    show: !1
                }) : o.setData({
                    show: !0
                });
            });
        }
    }
});

var t = new Promise(function(t, n) {
    wx.getStorageSync("userInfo") ? t(1) : wx.login({
        success: function(n) {
            n.code ? e.get(o.loginQQ, {
                code: n.code
            }).then(function(o) {
                0 == o.status && (console.log(o), 1 == o.data.is_info && wx.setStorage({
                    userInfo: 1
                }), t(o.data.is_info));
            }) : wx.showToast({
                title: "网络错误！",
                icon: "none",
                duration: 1e3
            });
        }
    });
});